Skip to main content
Glama

get analytics child content published

Track daily comment activity on TabNews content to analyze engagement and interactions using the MCP TabNews Integration server.

Instructions

To get how many comments were made (per day) in tabnews

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The async handler function that executes the tool's core logic: fetches analytics data using the service function and formats it as MCP-compliant text content with JSON stringification.
    handler: async (): Promise<McpResponse> => { try { const result = await getAnalyticsChildContentPublished(); const content: McpTextContent = { type: "text", text: `Analytics Child Content Published:\n\n${JSON.stringify( result, null, 2 )}`, }; return { content: [content], }; } catch (error) { if (error instanceof Error) { throw new Error( `Failed to get analytics child content published: ${error.message}` ); } else { throw new Error("Failed to get analytics child content published"); } }
  • src/index.ts:73-78 (registration)
    The server.tool() registration call that adds this tool to the MCP server instance.
    server.tool( getAnalyticsChildContentPublishedTool.name, getAnalyticsChildContentPublishedTool.description, getAnalyticsChildContentPublishedTool.parameters, getAnalyticsChildContentPublishedTool.handler );
  • Supporting service function that makes the HTTP request to the TabNews API endpoint for child content (comments) published analytics data.
    export async function getAnalyticsChildContentPublished(): Promise< AnalyticsChildContentPublished[] > { const response = await fetch( `${TABNEWS_API_URL}/analytics/child-content-published` ); const data = await response.json(); return data as AnalyticsChildContentPublished[]; }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/renant/mcp-tabnews'

If you have feedback or need assistance with the MCP directory API, please join our Discord server